package com.ayf.payment.game.api.service.payment;

import com.ayf.payment.game.api.service.payment.ayb.AybPaymentService;
import com.ayf.payment.game.api.service.payment.cyf.CYFPaymentService;
import com.ayf.payment.game.api.service.payment.faka.FaKaPaymentService;
import com.ayf.payment.game.api.service.payment.huandong.HuanDongPaymentService;
import com.ayf.payment.game.api.service.payment.huyu.HuYuPaymentService;
import com.ayf.payment.game.api.service.payment.qcjh.QCJHPaymentService;
import com.ayf.payment.game.api.service.payment.qicai.QCPaymentService;
import com.ayf.payment.game.api.service.payment.sky98.Sky98PaymentService;
import com.ayf.payment.game.api.service.payment.wanw.WANWPaymentService;
import com.ayf.payment.game.api.service.payment.wxyft.WANXYFTOrderPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author wwl
 * @date 2020/3/19 15:53
 */
@Component
public class PaymentHandleFactory {

	@Autowired
	private EHBPaymentService ehbPaymentService;

	@Autowired
	private EHBSplitOrderPaymentService ehbSplitOrderPaymentService;

	@Autowired
	private JBPaymentService jbPaymentService;

	@Autowired
	private WANXPaymentService wANXPaymentService;

	@Autowired
	private YKPaymentService yKPaymentService;

	@Autowired
	private LBPaymentService lBPaymentService;

	@Autowired
	private ZFYPaymentService zFYPaymentService;

	@Autowired
	private QiYiPaymentService qiYiPaymentService;

	@Autowired
	private ZhuoFuTongPaymentService zhuoFuTongPaymentService;

	@Autowired
	private QCPaymentService qcPaymentService;

	@Autowired
	private CYFPaymentService cyfPaymentService;

	@Autowired
	private WANWPaymentService wanwPaymentService;

	@Autowired
	private XingYou2PaymentService xingYou2PaymentService;

	@Autowired
	private XingYouPaymentService xingYouPaymentService;

	@Autowired
	private HuanDongPaymentService huanDongPaymentService;

	@Autowired
	private QCJHPaymentService qcjhPaymentService;

	@Autowired
	private HuYuPaymentService huYuPaymentService;

	@Autowired
	private AybPaymentService aybPaymentService;

	@Autowired
	private FaKaPaymentService faKaPaymentService;

	@Autowired
	private Sky98PaymentService sky98PaymentService;

	@Autowired
	private WANXYFTOrderPaymentService wanxyftOrderPaymentService;

	@Autowired
	private ZFYFZPaymentService zfyfzPaymentService;

	public IPaymentService getPayment(String c) {
		if (c.equals("EhbPay")) {
			return ehbPaymentService;
		}
		if (c.equals("JBPay")) {
			return jbPaymentService;
		}
		if (c.equals("WanX")) {
			return wANXPaymentService;
		}
		if (c.equals("YouK")) {
			return yKPaymentService;
		}
		if (c.equals("LongBao")) {
			return lBPaymentService;
		}
		if (c.equals("ZFY")) {
			return zFYPaymentService;
		}
		if (c.equals("QiYi")) {
			return qiYiPaymentService;
		}
		if (c.equals("ZFT")) {
			return zhuoFuTongPaymentService;
		}
		if (c.equals("QC")) {
			return qcPaymentService;
		}
		if (c.equals("CYF")) {
			return cyfPaymentService;
		}
		if (c.equals("WANW")) {
			return wanwPaymentService;
		}
		if (c.equals("XingYou2")) {
			return xingYou2PaymentService;
		}
		if (c.equals("XingYou")) {
			return xingYouPaymentService;
		}
		if (c.equals("HuanDong")) {
			return huanDongPaymentService;
		}
		if (c.equals("QCJH")) {
			return qcjhPaymentService;
		}
		if (c.equals("HuYu")) {
			return huYuPaymentService;
		}
		if (c.equals("AYB_PAY")) {
			return aybPaymentService;
		}
		if (c.equals("AYF_SPLIT_PAY")) {
			return ehbSplitOrderPaymentService;
		}
		if (c.equals("WXYFT")) {
			return wanxyftOrderPaymentService;
		}
		if (c.equals("ZFYFZ")) {
			return zfyfzPaymentService;
		}
		if ("FaKa".equals(c)) {
			return faKaPaymentService;
		}
		if ("Sky98".equals(c)) {
			return sky98PaymentService;
		}
		return ehbPaymentService;
	}


}
